#ifndef REPLACEBY_H
#define REPLACEBY_H

#include <QDialog>

namespace Ui {
class ReplaceBy;
}

class ReplaceBy : public QDialog
{
    Q_OBJECT

private:
    QString m_bad;
    QStringList m_goodList;
    int m_retValue;
    void initConnect ();

public:
    explicit ReplaceBy (QWidget *parent = 0);
    ~ReplaceBy();

    enum { ReplaceHere, ReplaceEveryWhere, ReplaceAllways, Cancel };

    int run (const QString &bad, const QStringList& goodList, QString * good);

private slots:
    void on_here_clicked();
    void on_inWholeText_clicked();
    void on_always_clicked();
    void on_cancel_clicked();
    void on_goodList_currentRowChanged(int currentRow);
    void on_good_textChanged(const QString &arg1);

private:
    Ui::ReplaceBy *ui;
};

#endif // REPLACEBY_H
